from api.base import Base

class CountyCharge(Base):

    def add_county(self,token,account,name,cityid,password,type):
        """
        添加县级接口
        :param token:
        :param account:
        :param name:
        :param schoolid:
        :param password:
        :param type:
        :return:
        """

        p_data = {"token": token, "account": account, "name": name, "parentId": cityid, "password": password,
                  "type": type}
        resp = self.send_api_data('countycharge_api_path', p_data, "add_county")
        return resp

if __name__ == '__main__':
    CountyCharge().add_county("OATH2SESSION=9252FD8F12CA2F650561ADB0520490BB","testmilin","米林县","718456314367311873","123456","COUNTY")
